package com.banana.manager.forest.entity.chemical;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@TableName("out_info")
@Getter
@Setter
@NoArgsConstructor
@ToString
public class OutBean {
    @TableId(value = "out_id", type = IdType.AUTO)
    private Integer outId;
    @TableField("out_amount")
    private Integer outAmount;
    @TableField(exist = false)
    private DisburseBean disburseBean;
    @TableField(exist = false)
    private DeviceBean  deviceBean;

    public OutBean(Integer outAmount, DisburseBean disburseBean, DeviceBean deviceBean) {
        this.outAmount = outAmount;
        this.disburseBean = disburseBean;
        this.deviceBean = deviceBean;
    }

    public OutBean(Integer outAmount) {
        this.outAmount = outAmount;
    }
}
